const authhttp_pro = {
	dev: {
		baseUrl: "https://api.mls.xinzi365.com",
		wxBaseUrl: "https://mini.mls.xinzi365.com"
	},
	test: {
		baseUrl: "https://api.mls.xinzi365.com",
		wxBaseUrl: "https://mini.mls.xinzi365.com"
	},
	formal: {
		baseUrl: "https://run.paobianhb.com",
		wxBaseUrl: "https://xcx.paobianhb.com"
	}
}
/**
 * 获取地址
 */
function getAuthUrl() {
	const host = window.location.host
	const hostname = window.location.hostname
	let authhttp = {}
	if (hostname !== 'localhost') {
		if (host.indexOf('guanli.paobianhb.com') > -1) { //正式
			authhttp = authhttp_pro['formal']
		} else {
			authhttp = authhttp_pro['test']
		}
	} else {
		authhttp = authhttp_pro['dev']
	}
	return authhttp
}
window.config = {
	getAuthUrl: getAuthUrl
}